package org.xxpay.service.dao.mapper;

import org.apache.ibatis.annotations.Param;
import org.xxpay.core.entity.AlipayCashDetail;
import org.xxpay.core.entity.AlipayCashDetailExample;

import java.util.List;
import java.util.Map;

public interface AlipayCashDetailMapper {
    int countByExample(AlipayCashDetailExample example);

    int deleteByExample(AlipayCashDetailExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(AlipayCashDetail record);

    int insertSelective(AlipayCashDetail record);

    List<AlipayCashDetail> selectByExample(AlipayCashDetailExample example);

    AlipayCashDetail selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") AlipayCashDetail record, @Param("example") AlipayCashDetailExample example);

    int updateByExample(@Param("record") AlipayCashDetail record, @Param("example") AlipayCashDetailExample example);

    int updateByPrimaryKeySelective(AlipayCashDetail record);

    int updateByPrimaryKey(AlipayCashDetail record);

    /** 查询统计数据, 显示今日/昨日分账总金额 **/
    Map<String, Long> selectTotalCashAmount(AlipayCashDetail record);


}